package javabase.schoolwork.day6_1to3;

/**
 * @author fance
 * @date 2018/6/1 21:37
 */
public class ComputerRunner extends Computer {

    public ComputerRunner(String brand, long num, CPU cpu, HardDisk hardDisk, Screen screen, KeyBoard keyBoard) {
        super(brand, num, cpu, hardDisk, screen, keyBoard);
    }


    public void in(int choose) {
        switch (choose) {
            case 1:
                System.out.println("键盘输入");break;
                case 2:
                System.out.println("鼠标输入");break;
                case 3:
                System.out.println("手写笔输入");break;
        }
    }
    public void save(int choose) {
        switch (choose) {
            case 1:
                System.out.println("硬盘");break;
                case 2:
                System.out.println("U盘");break;
                case 3:
                System.out.println("光盘");break;
        }
    }
    public void display(int choose) {
        switch (choose) {
            case 1:
                System.out.println("显示器");break;
                case 2:
                System.out.println("控制台");break;
                case 3:
                System.out.println("打印机");break;
        }
    }
}
